# -*- coding:utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:


def query_cluster(client):
    return client.query_cluster()


def query_cluster_by_uuid(client, uuid):
    data = {'conditions': [{'name': 'uuid',
                            'op': '=',
                            'value': uuid}]}
    return client.query_cluster(data)
